

<!DOCTYPE html>
<html  xmlns="http://www.w3.org/1999/xhtml"
       xmlns:th="http://www.thymeleaf.org"
       xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" lang="en">
<head>
  <meta charset="utf-8">
  <title>某知名在线平台</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="static/layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="static/layuiadmin/style/admin.css" media="all">

</head>
<body class="layui-layout-body">

  <div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
      <div class="layui-header">
        <!-- 头部区域 -->
        <ul class="layui-nav layui-layout-left">
          <li class="layui-nav-item layadmin-flexible" lay-unselect>
            <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
              <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
            </a>
          </li>
          <li class="layui-nav-item layui-hide-xs" lay-unselect>
            <a href="http://www.baidu.com" target="_blank" title="前台">
              <i class="layui-icon layui-icon-website"></i>
            </a>
          </li>
        </ul>
        <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">


          <li class="layui-nav-item layui-hide-xs" lay-unselect>
            <a href="javascript:;" layadmin-event="theme">
              <i class="layui-icon layui-icon-theme"></i>
            </a>
          </li>


          <li class="layui-nav-item" lay-unselect>
            <span id="time1" style="color: black;"></span>
          </li>

          <li class="layui-nav-item" lay-unselect>
            <a href="javascript:;">
              <cite>您好：<span shiro:principal style="font-weight: bolder"></span></cite>
            </a>
            <dl class="layui-nav-child">
              <dd><a lay-href="set/user/info">基本资料</a></dd>
              <dd><a lay-href="set/user/password">修改密码</a></dd>
              <hr>
              <dd  style="text-align: center;"><a href="login" onclick="quit()">退出</a></dd>
            </dl>
          </li>

          <li class="layui-nav-item layui-hide-xs" lay-unselect>
            <a href="javascript:;" layadmin-event="fullscreen">
              <i class="layui-icon layui-icon-screen-full"></i>
            </a>
          </li>
        </ul>
      </div>

      <!-- 侧边菜单 -->
      <div class="layui-side layui-side-menu">
        <div class="layui-side-scroll">
          <div class="layui-logo" lay-href="home/console">
            <span>在线教育后台</span>
          </div>

          <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
            <li data-name="home" class="layui-nav-item layui-nav-itemed">
              <a href="javascript:;" lay-tips="主页" lay-direction="2">
                <i class="layui-icon layui-icon-home"></i>
                <cite>主页</cite>
              </a>
              <dl class="layui-nav-child">
                <dd data-name="console" class="layui-this">
                  <a lay-href="home/console">数据看板</a>
                </dd>
              </dl>
            </li>

            <!-- 订单管理 -->
            <li data-name="user" class="layui-nav-item">
              <a href="javascript:;" lay-tips="订单管理" lay-direction="2">
                <i class="layui-icon layui-icon-list"></i>
                <cite>订单管理</cite>
              </a>
              <dl class="layui-nav-child">
                <dd>
                  <a lay-href="order/order">查询订单</a>
                </dd>
             </dl>
            </li>
            <!-- 商品管理 -->
            <li data-name="user" class="layui-nav-item">
              <a href="javascript:;" lay-tips="商品管理" lay-direction="2">
                <i class="layui-icon layui-icon-app"></i>
                <cite>商品管理</cite>
              </a>
              <dl class="layui-nav-child">
                <dd>
                  <a lay-href="goods/goodsInfo">商品管理</a>
                </dd>
                <dd>
                  <a lay-href="goods/addPage">发布商品</a>
                </dd>
<!--                <dd>-->
<!--                  <a lay-href="goods/upGoods">修改商品</a>-->
<!--                </dd>-->
                <dd>
                  <a lay-href="goods/enti">实物管理</a>
                </dd>
                <dd>
                  <a lay-href="goods/colu">专栏管理</a>
                </dd>
                <dd>
                  <a lay-href="goods/setcol">创建专栏</a>
                </dd>

              </dl>
            </li>
            <!-- 内容管理 -->
            <li data-name="user" class="layui-nav-item">
              <a href="javascript:;" lay-tips="内容管理" lay-direction="2">
                <i class="layui-icon layui-icon-read"></i>
                <cite>内容管理</cite>
              </a>
              <dl class="layui-nav-child">
                <dd>
                  <a lay-href="project">项目管理</a>
                </dd>
                <dd>
                  <a lay-href="course">课程管理</a>
                </dd>
                <dd>
                  <a lay-href="live">直播管理</a>
                </dd>
                <dd>
                  <a lay-href="knowpoint">知识点管理</a>
                </dd>
                <dd>
                  <a lay-href="video">视频管理</a>
                  <dl class="layui-nav-child">
                    <dd><a lay-href="upload">上传视频</a></dd>

                  </dl>
                </dd>
              </dl>
            </li>
            <!-- 题库管理 -->
            <li data-name="user" class="layui-nav-item">
              <a href="javascript:;" lay-tips="题库管理" lay-direction="2">
                <i class="layui-icon layui-icon-survey"></i>
                <cite>题库管理</cite>
              </a>
              <dl class="layui-nav-child">
                <dd>
                  <a lay-href="ques/quesbank">题库管理</a>
                </dd>
                <dd>
                  <a lay-href="ques/question">题目管理</a>
                </dd>
                <dd>
                  <a lay-href="ques/test">试卷管理</a>
                </dd>
               <!-- <dd>
                  <a lay-href="ques/classtest">随堂练习</a>
                </dd>-->
                <dd>
                  <a lay-href="ques/add">新增题目</a>
                </dd>
                <!--<dd>
                  <a lay-href="ques/relques">关联题目</a>
                </dd>-->
              </dl>
            </li>
            <!-- 学员管理 -->
            <li data-name="user" class="layui-nav-item">
              <a href="javascript:;" lay-tips="学员管理" lay-direction="2">
                <i class="layui-icon layui-icon-user"></i>
                <cite>学员管理</cite>
              </a>
              <dl class="layui-nav-child">
                <dd>
                  <a lay-href="student/record">观看记录</a>
                </dd>
                <dd>
                  <a lay-href="student/studentinfo">学员查询</a>
                </dd>
                <dd>
                  <a lay-href="student/studentinclass">学员开课</a>
                </dd>
              </dl>
            </li>


            <!-- 信息管理 -->
            <li data-name="user" class="layui-nav-item">
              <a href="javascript:;" lay-tips="信息管理" lay-direction="2">
                <i class="layui-icon layui-icon-notice"></i>
                <cite>信息管理</cite>
              </a>
              <dl class="layui-nav-child">
                <dd>
                  <a lay-href="smsmanage">信息管理</a>
                </dd>
                <dd>
                  <a lay-href="sms">新建短信群发任务</a>
                </dd>
              </dl>
            </li>


            <!-- 广告管理 -->

            <!-- 师资管理 -->
            <li data-name="user" class="layui-nav-item">
              <a href="javascript:;" lay-tips="师资管理" lay-direction="2">
                <i class="layui-icon layui-icon-user"></i>
                <cite>师资管理</cite>
              </a>
              <dl class="layui-nav-child">
                <dd>
                  <a lay-href="teacher/teacher">师资列表</a>
                </dd>
                <dd>
                  <a lay-href="teacher/addTeacher">新增师资</a>
                </dd>
              </dl>
            </li>
            <!-- 咨询管理 -->


            <!-- 用户 -->
            <shiro:hasRole name="superadmin">
              <li data-name="user" class="layui-nav-item">
                <a href="javascript:;" lay-tips="用户" lay-direction="2">
                  <i class="layui-icon layui-icon-user"></i>
                  <cite>用户</cite>
                </a>
                <dl class="layui-nav-child">
                  <dd>
                    <a lay-href="user/admin">后台管理员</a>
                  </dd>
                  <dd>
                    <a lay-href="user/role">角色管理</a>
                  </dd>
                </dl>
              </li>
            </shiro:hasRole >
            <li data-name="set" class="layui-nav-item">
              <a href="javascript:;" lay-tips="设置" lay-direction="2">
                <i class="layui-icon layui-icon-set"></i>
                <cite>设置</cite>
              </a>
              <dl class="layui-nav-child">
<!--                <dd class="layui-nav-itemed">-->
<!--                  <a href="javascript:;">系统设置</a>-->
<!--                  <dl class="layui-nav-child">-->
<!--                    <dd><a lay-href="set/system/website.html">网站设置</a></dd>-->
<!--                    <dd><a lay-href="set/system/email.html">邮件服务</a></dd>-->
<!--                  </dl>-->
<!--                </dd>-->
                <dd class="layui-nav-itemed">
                  <a href="javascript:;">我的设置</a>
                  <dl class="layui-nav-child">
                    <dd><a lay-href="set/user/info">基本资料</a></dd>
                    <dd><a lay-href="set/user/password">修改密码</a></dd>
                  </dl>
                </dd>
              </dl>
            </li>


          </ul>
        </div>
      </div>

      <!-- 页面标签 -->
      <div class="layadmin-pagetabs" id="LAY_app_tabs">
        <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
        <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
        <div class="layui-icon layadmin-tabs-control layui-icon-down">
          <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
            <li class="layui-nav-item" lay-unselect>
              <a href="javascript:;"></a>
              <dl class="layui-nav-child layui-anim-fadein">
                <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
              </dl>
            </li>
          </ul>
        </div>
        <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
          <ul class="layui-tab-title" id="LAY_app_tabsheader">
            <li lay-id="home/console.html" lay-attr="home/console.html" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
          </ul>
        </div>
      </div>


      <!-- 主体内容 进页面的时候展示-->
      <div class="layui-body" id="LAY_app_body">
        <div class="layadmin-tabsbody-item layui-show">
          <iframe src="home/console" frameborder="0" class="layadmin-iframe"></iframe>
        </div>
      </div>

      <!-- 辅助元素，一般用于移动设备下遮罩 -->
      <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
  </div>

  <script src="static/layuiadmin/layui/layui.js"></script>
  <script>
  layui.config({
    base: 'static/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use('index');
  </script>

  <script src="static/js/jquery.min.js"></script>
  <script>
    function quit() {
      $.ajax({
        url:"system/quit",
        type:"GET",
        success:function (res) {
          if(res.code!==200){
            alert("系统繁忙")
          }
        },error:function () {
          alert("出错啦……")
        }
      })
    }
  </script>

  <script>
    function mytime(){
      let a = new Date();
      let b = a.toLocaleTimeString();
      let c = a.toLocaleDateString();
      document.getElementById("time1").innerHTML = c+"&nbsp"+b;
    }
    setInterval(function() {mytime()},1000);
  </script>


</body>
</html>


